package com.xuecheng.content.service;

import com.xuecheng.api.content.model.dto.TeachplanDTO;
import com.xuecheng.api.content.model.vo.TeachplanVO;
import com.xuecheng.content.entity.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itcast
 * @since 2021-12-11
 */
public interface TeachplanService extends IService<Teachplan> {

    /**
     * 根据id查询课程计划
     * @param courseId Long 课程id
     * @param companyId Long  教学机构id
     * @return TeachplanDTO
     */
    TeachplanDTO queryTeachplanById(Long courseId,Long companyId);


    /**
     * 创建和修改课课程计划
     * @param dto   TeachplanDTO 课程计划实体类
     * @param companyid Long   教学机构id
     * @return  TeachplanDTO
     */
    TeachplanDTO createOrSetTeachPlan(TeachplanDTO dto,Long companyid);

    /**
     *删除课程计划
     * @param teachPlanId   Long 判断是否是二级子级
     * @param companyid Long  公司id
     */
    void delectteachPlant(Long teachPlanId,Long companyid);
}
